home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / lib / os-probes / mounted / 10qnx < prev    next >
Text File  |  2008-08-25  |  388b  |  22 lines

  1. #!/bin/sh
  2.  
  3. . /usr/share/os-prober/common.sh
  4.  
  5. partition=$1
  6. mpoint=$2
  7. type=$3
  8.  
  9. # Weed out stuff that doesn't apply to us
  10. case "$type" in
  11.   qnx4) debug "$partition is a QNX4 partition" ;;
  12.   *) debug "$partition is not a QNX4 partition: exiting"; exit 1 ;;
  13. esac
  14.  
  15. if [ -e "$mpount/.boot" ]; then
  16.   label=$(count_next_label QNX)
  17.   result "$partition:QNX:$label:chain"
  18.   exit 0
  19. else
  20.   exit 1
  21. fi
  22.